Codeforces Round 974 Problem A.robin Helps Full Solution In C++